home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
STARMAP.DIR
/
00002_Script_2
next >
Wrap
Text File
|
1995-11-16
|
5KB
|
210 lines
on showHilite
global gCurrChanxxx,gFirsChan,gLastChan, gPrevHilite, gCurrList
if (the machineType = 256 and the controlDown) or the commandDown then exit
set m = marker(0)
if m <> 66 and m <> 77 and m <> 108 and m <> 118 then
set m = the movie
testOverheadMenu
if m <> the movie then exit
end if
repeat with i = gFirsChan to gLastChan
if not rollOver(i) then next repeat
set cn = the castNum of sprite i
if cn = 0 then next repeat
put getAprop(gCurrList,i) into thisOne
if voidP(thisOne) then next repeat
if not doRollOverMe(thisOne) then next repeat
rollo(thisOne)
if doHiLiteMe(thisOne) then
set t = the ticks + 10
repeat while rollOver(i)
if the mouseDown then exit Repeat
if (the machineType = 256 and the controlDown) or the commandDown ¼
then exit repeat
if t < the ticks then
set the visibility of sprite 48 = not the visibility of sprite 48
set t = the ticks + 10
updateStage
end if
end repeat
if the mouseDown then
press(thisOne)
set m = the movie
doScript(thisOne)
if the movie = m then
norm(thisOne)
updateStage
else
exit
end if
else
norm(thisOne)
updateStage
end if
else
exit repeat
end if
end repeat
end showHilite
on showHiliteNS
global gFirsChan,gLastChan, gPrevHilite, gCurrList
if (the machineType = 256 and the controlDown) or the commandDown then exit
if rollOver(15) or rollOver(16) then exit
set m = the movie
testOverheadMenu
if m <> the movie then exit
repeat with i = gFirsChan to gLastChan
if not rollOver(i) then next repeat
set cn = the castNum of sprite i
if cn = 0 then next repeat
put getAprop(gCurrList,i) into thisOne
if voidP(thisOne) then next repeat
if not doRollOverMe(thisOne) then next repeat
rollo(thisOne)
if doHiLiteMe(thisOne) then
set t = the ticks + 10
repeat while rollOver(i)
if the mouseDown then exit Repeat
if (the machineType = 256 and the controlDown) or the commandDown ¼
then exit repeat
if t < the ticks then
set the visibility of sprite 48 = not the visibility of sprite 48
set t = the ticks + 10
updateStage
end if
if rollOver(15) or rollOver(16) then
norm(thisOne)
exit
end if
end repeat
if the mouseDown then
--put ">>> mouse down in sh NS"
press(thisOne)
norm(thisOne)
set m = the movie
doScript(thisOne)
if m <> the movie then exit
if cn = 47 or cn = 50 then -- show/hide names
repeat while the mouseDown
end repeat
end if
exit repeat
else
norm(thisOne)
updateStage
end if
else
set n = the name of cast cn
if n = "SCR.PIC" or n = "STR.PIC" then exit
press(thisOne)
norm(thisOne)
doScript(thisOne)
exit repeat
end if
end repeat
end showHiliteNS
on showHiliteSS
global gFirsChan,gLastChan, gPrevHilite, gCurrList
if (the machineType = 256 and the controlDown) or the commandDown then exit
set m = the movie
testOverheadMenu
if m <> the movie then exit
repeat with i = gFirsChan to gLastChan
if not rollOver(i) then next repeat
set cn = the castNum of sprite i
if cn = 0 then next repeat
put getAprop(gCurrList,i) into thisOne
if voidP(thisOne) then next repeat
if not doRollOverMe(thisOne) then next repeat
set f = the frame
rollo(thisOne)
if the frame <> f then exit
if doHiLiteMe(thisOne) then
set t = the ticks + 10
repeat while rollOver(i)
if the mouseDown then exit Repeat
if (the machineType = 256 and the controlDown) or the commandDown ¼
then exit repeat
if t < the ticks then
set the visibility of sprite 48 = not the visibility of sprite 48
set t = the ticks + 10
updateStage
end if
end repeat
if the mouseDown then
press(thisOne)
norm(thisOne)
set m = the movie
doScript(thisOne)
if m <> the movie then exit
if cn = 47 or cn = 50 then
repeat while the mouseDown
end repeat
end if
else
norm(thisOne)
updateStage
end if
else
set n = the name of cast cn
if n = "SCR.PIC" or n = "STR.PIC" then exit
press(thisOne)
norm(thisOne)
doScript(thisOne)
exit repeat
end if
end repeat
end showHiliteSS